﻿using System;
using System.Collections.Generic;

namespace DataLayer
{
    public class RepositoryDataChangedArgs<T> : EventArgs
    {
        public RepositoryDataChangedArgs(ICollection<T> Objects, DataChangeType dataChangeType)
        {
            this.Objects = Objects;
            this.DataChangeType = dataChangeType;
        }

        public DataChangeType DataChangeType
        {
            get; private set;
        }

        /// <summary>
        /// The objects affected by the change.
        /// </summary>
        public ICollection<T> Objects
        {
            get; private set;
        }

    }
}
